#pragma once

class XDlg : public SOUI::SHostDialog, public SOUI::IMessageFilter {
  public:
    XDlg(LPCTSTR pszXmlName);
    virtual ~XDlg();
  public:
    virtual BOOL PreTranslateMessage(MSG *pMsg);
    virtual void OnFinalMessage(HWND hWnd);
    
    //  LRESULT OnLogout(DWORD EMMsgID, WPARAM wParam, LPARAM lParam);
    
    
  protected:
    void setCtrlText(const SOUI::SStringW &ctrlName, const SOUI::SStringW &text,
                     const SOUI::SStringW &textColor = L"", const SOUI::SStringW &ctrlSkin = L"");
                     
  public:
    // *INDENT-OFF*
    BEGIN_MSG_MAP_EX(XDlg)
        CHAIN_MSG_MAP(SHostDialog)
        REFLECT_NOTIFICATIONS_EX()
    END_MSG_MAP()
    // *INDENT-ON*
};
